<%@ taglib prefix="s" uri="/struts-tags"%>


<s:set name="adminLoginCheck" value="%{#session.adminLogin}" />
<s:if test="%{#adminLoginCheck!=null}">



	<div id="container">

		<s:form action="adminInvoiceEditSave" namespace="/">

			<s:iterator value="invoice">
<s:textfield disabled="true" label="Customer"
					key="customer.getName()" />

				<s:textarea label="Mailing Address" key="mailing_address" />
				<s:textfield disabled="true" label="Payment Method"
					key="payment_method" />
				<s:select label="Status"
					list="#{'successful':'successful', 'fail':'fail'}" name="status"
					value="status" />
				<br />
				<s:textfield disabled="true" label="Transaction Date"
					key="dateString" />
				



			</s:iterator>


			<s:hidden name="id" value="%{id}" />
			<s:submit name="saveChange" value="save">
			</s:submit>
		</s:form>








		<table style="width: 100%">

			<tr style="background: #DDD">
				<td>Name</td>

				<td>Size</td>
				<td>Color</td>
				<td>Quantity</td>
								<td>Unit price</td>
				
				<td>Price</td>
			</tr>


			<s:iterator value="invoice_items">

				<tr>
					<td><s:property value="getProductName()" /></td>

					<td><s:property value="getSizeName()" /></td>
					<td><s:property value="getColorName()" /></td>
					<td><s:property value="quantity" /></td>
										<td><s:property value="" /></td>
					
					<td><s:property value="price" /></td>




				</tr>
			</s:iterator>
total amount
		</table>


	</div>

</s:if>

